.PHONY: build-image
build-image:
	docker rmi manga-image-translator || true
	docker build . --tag=manga-image-translator

.PHONY: run-web-server
run-web-server:
	docker run --gpus all -p 5003:5003 --ipc=host --rm zyddnys/manga-image-translator:main \
		--target-lang=ENG \
		--manga2eng \
		--verbose \
		--mode=web \
		--use-gpu \ 
		--host=0.0.0.0 \
		--port=5003


.PHONY: batch
batch:
	python -m manga_translator --translator=baidu -l ENG  --inpainting-precision bf16  --inpainter lama_mpe -i ./images

.PHONY: web
web:
	python -m manga_translator --verbose --mode web --use-gpu --inpainting-precision bf16  --inpainter lama_mpe